package org.ykh.gmall.activity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;
import org.ykh.gmall.base.BaseEntity;

import java.util.Date;

@Data
@Schema(description = "活动sku范围")
@TableName("activity_sku")
public class ActivitySku extends BaseEntity {
   
   private static final long serialVersionUID = 1L;
   
   @SchemaProperty(name = "活动id ")
   @TableField("activity_id")
   private Long activityId;

   @SchemaProperty(name = "sku_id")
   @TableField("sku_id")
   private Long skuId;

   @SchemaProperty(name = "创建时间")
   @TableField("create_time")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date createTime;

}